<?php
namespace Admin\Model;
use \Frame\Libs\BaseModel;
include "./Common/CheckAdmin.php";
final class CommonModel extends BaseModel{
	public function getCommon(){
		$sql = "SELECT * FROM love_common WHERE common_id=1";
		return $this->pdo->fetchOne($sql);
	}
	
	public function editCommon($phone,$email,$address,$about){
		$sql = "UPDATE love_common SET phone='$phone',email='$email',address='$address',about='$about' WHERE common_id='1'";
		return $this->pdo->exec($sql);
	}
}